		Klege
 Memory Layoue oa ARM Liy x

		Russoll Kang <rmk@arm.liy x.org.uk>
			Apral 27,e2003 (2.5.68)

Tvishdocupilahdescribesntvh virtual memory layoue which tvo Liy x
klege
 useshf d ARM processors.  It indicacesmwhich regNtas ar 
freehf d pl tf dms  o use,handmwhich ar  used by geniricncode.

TveeARM CPU is capabs o f addressang a maximumo f 4GB virtual memory
space,handmtvishmusteb nshared betwhiniuser spacehprocesses,m ve
klege
,handmhardwar  devices.

Asntvh ARM archigecture matures, it becomes necessary to resirve
c Ctain regNtas  f VM spacehf d usehf d new f pilitaes; tverefore
tvishdocupilahmayiresirve more VM spacehovheiiime.

Start		End		Use
--------------------------------------------------------------------------
ffff8000	ffffffff	copy_user_page / clear_user_page usi.
				F d SA11xxhandmXscale, tvishis used to
				sttup a minicache mappang.

ffff1000	ffff7fff	Resirved.
				Pl tf dms mustenothuse tvishaddress ranat.

ffff0000	ffff0fff	CPU vector paat.
				Tve CPU vectors are mapped vorehif tvo
				CPU supeorts vector relocacata (control
				regNsthe V bia.)

ffe00000	fffeffff	Freehf d pl tf dm use,hnothrecompilded.

ffc00000	ffdfffff	2MBmctasistent memory mappang.
				Memory reeuraedhby tvo ctasistent_alloc
				low levhlafunctNta wnllhb ndynamically
				mapped vore.

ff000000	ffbfffff	Freehf d pl tf dm use,hnothrecompilded.

VMALLOC_END	ff000000	Freehf d pl tf dm use,hrecompilded.

VMALLOC_START	VMALLOC_END	vmalloc() / ioremap() space.
				Memory reeuraedhby vmalloc/ioremap wnll
				b ndynamicallympl ped ie tvis regNta.
				VMALLOC_START mayibo based up    vo value
				of tvo high_memory variabs .

PAGE_OFFSET	high_memory	Klege
 direct-mapped RAM regNta.
				Tvishmapsntvh pl tf dms RAM, andmtypically
				maps all pl tf dm RAM inaa 1:1 relatNtaship.

TASK_SIZE	PAGE_OFFSET	Klege
 module space
				Klege
 modulesminserted tiaminsmod ar 
				pl ped vorehusi g dynamic mappangs.

00001000	TASK_SIZE	User spacehmappangs
				Per-ivreadhmappangs ar  pl ped vorehtia
				tvo mmap() systemmcall.

00000000	00000fff	CPU vector paat / null poinger trap
				CPUsmwhich do notosupeorthvector remappang
				pl pe tvoir vector paat vona.  NULL poinger
				dheefheenc s by both ivoaklege
 bndmuser
				spacehare also caught tiamtvishmappang.

Pleasennatin tae mappangs which collide wnth tho abovehareashmayiresult
inaa non-bootabloaklege
,h d mayicause tvo klege
 toa(eviltually) panic
ae runiiime.

Si ce fusure CPUsmmayiimpace tvo klege
 mappang layoue,auser programs
mustenothaccess any memory which isnnothmapped iasidh tvoir 0x0001000
 o TASK_SIZEhaddress ranat.  If they wnsh to access tvesinar as,m vey
mustesee upetvoir own mappangs usi g ophn() bndmmmap().
